package com.mxin.log.init

import android.content.Context
import com.mxin.common.GlobalApp
import com.mxin.log.Logt

class LogInit {

    private lateinit var context: Context

    companion object{

        private val manager by lazy { LogInit() }

        fun getInstance(context: Context):LogInit{
            manager.context = context
            manager.init()
            return manager
        }

    }

    private fun init(){
        val logt = Logt()
        logt.setTag(context.packageName)
        logt.d("启动初始化 LogInit.init() ")
        GlobalApp.initLog(logt)
    }

}